<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();

if($_RQ['op']=='get'){
	$info=pdo_get('core_account_wxapp_info',array('uniacid'=>$_SESSION['uniacid']),array('title','logo','desc','hdps','anlis','biaoqian'));
	$return=array(
		'verify_code'=>$_AR['system']['verify_code'],
		'logo'=>$_SESSION['account']['logo'],
		'item'=>array()
	);
	$return['account']=$_SESSION['account'];
	$return['account']['navs']=json_decode($return['account']['navs'],true);
	$return['extradata']=array();
	$page=$return['account'];
	$info['hdps']=json_decode($info['hdps'],true);
	$info['anlis']=json_decode($info['anlis'],true);
	$info['biaoqian']=json_decode($info['biaoqian'],true);
	if($info['biaoqian']){
		foreach($info['biaoqian'] as $key=>&$item){
			$item['url']=custom_url('core/home.wxapp/list/biaoqian='.$key,true);
		}
	}
	if($_SESSION['os'] == 'mobile'){
		$return['sharedata']=array(
			'title' => '小程序智能生成,多应用打包，DIY小程序-'.$page['title'],
			'desc'=>$page['desc'],
			'imgUrl'=>ATTACHMENT_URL.$page['logo'],
		);
	}
	$return['info']=$info;
	set_html('header','common/header-cms');
	set_html('title','小程序智能生成');
	exi($return);
}
?>